import {
	useDeletePic,
	useAfterRead
} from "../hooks/useUpload"
/**
 * 事件上报-文件上传相关代码混入 
 */
export default {
	data() {
		return {
			mu_fileList: []
		}
	},
	methods: {
		// 删除图片
		muDeletePic(event) {
			this.mu_fileList = useDeletePic(event, this.mu_fileList);
			console.log("this.mu_fileList", this.mu_fileList);
		},
		async muAfterRead(event) {
			const {
				data
			} = await useAfterRead(event, this.mu_fileList);
			if (data) this.mu_fileList = data
			console.log("mu_fileList", this.mu_fileList);
		},
	}
}